package cn.easier.activity.console.service;

import cn.easier.activity.web.entity.ActivityRule;

/**
 * 活动规则Service
 */
public interface ActivityRuleInfoService {
    /**
     * 获取指定活动规则
     *
     * @param activityInfoId 活动编号
     * @return
     */
    public ActivityRule findOneByActivityInfoId(Integer activityInfoId);

    /**
     * 创建或更新活动规则
     *
     * @param activityRule 活动规则信息
     * @return
     */
    public ActivityRule saveAndFlush(ActivityRule activityRule);

    public ActivityRule findOneByPrizeClaw(Integer activityInfoId, String prizeClawType);

    public ActivityRule findPrizeClawByActivityInfoId(Integer activityInfoId,String PrizeClawType);

}
